package day0306;

import java.io.File;
import java.io.FileFilter;

/**
 *参数->{}
 */
public class Test06 {
    public static void main(String[] args) {
        File file =new File(".");
        //获取子项
        File[] f =file.listFiles(new FileFilter() {
            @Override
            public boolean accept(File pathname) {
                return false;
            }
        });


        File[] f1 =file.listFiles(f2->f2.getName().contains("s"));

        for (File sub:f){
            System.out.println(sub.getName());
        }
    }
}
